﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="IngresoErrores.aspx.cs" Inherits="Gui.Web.Forms.IngresoErrores" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container">
        <div class="row">
            <div class="area-top clearfix">
                <div class="pull-left header">
                    <h3 class="title">
                        <i class="icon-dashboard"></i>Errores
                    </h3>
                    <h5>
                        <span>Informaci&oacute;n de Errores </span>
                    </h5>
                </div>
            </div>
        </div>
    </div>
    <div class="container padded">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header">
                        <span class="title">Ingreso de Errores</span></div>
                    <div class="padded">
                        <div>
                            <label>
                                Elija el colaborador:
                            </label>
                            <br />
                            <asp:DropDownList ID="ListaColaboradores" runat="server" AutoPostBack="True" DataMember="IdColaborador"
                                DataValueField="IdColaborador" DataTextField="Nombres" OnSelectedIndexChanged="Colaborador_SelectedIndexChanged"
                                Width="30%" class="chzn-select">
                            </asp:DropDownList>
                        </div>
                        <br />
                        <label>
                            Seleccione Fecha:</label><br />
                        <asp:TextBox ID="FechaIngreso" class="datepicker fill-up" data-date-format="dd/mm/yyyy" placeholder="Fecha de ingreso"
                            runat="server" AutoPostBack="True" OnTextChanged="FechaIngreso_TextChanged"></asp:TextBox>
                            <i class="icon-calendar"></i>
                        <br />
                        <br />
                        <br />
                        <label>
                            Datos de Faltantes y sobrantes:</label><br />
                        <asp:GridView ID="DatosColaborador" class="table table-bordered table-striped responsive"
                            runat="server" AutoGenerateColumns="False" DataKeyNames="IdColaborador, IdError">
                            <Columns>
                                <asp:BoundField DataField="IdColaborador" HeaderText="IdColaborador" Visible="False" />
                                <asp:BoundField DataField="IdError" HeaderText="IdError" Visible="False" />
                                <asp:BoundField DataField="NombreError" HeaderText="Error" />
                                <asp:TemplateField AccessibleHeaderText="Cantidad" HeaderText="Cantidad">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextoCantidad" runat="server" Text="<%# Bind('Cantidad') %>" Width="100%"></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-blue" id="Guardar" runat="server" onserverclick="Guardar_Click">
                            Guardar</button>
                        <button type="button" class="btn btn-default" runat="server" id="Cancelar" onserverclick="Cancelar_Click">
                            Cancelar</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
